#include<stdio.h>
int main(){
	char str[3];
	scanf("%s",&str);
	printf("  %s\n %s%s%s\n%s%s%s%s%s\n",str,str,str,str,str,str,str,str,str);  
	
} 
